package com.keda.springdata_elasticsearch.service;

import com.keda.springdata_elasticsearch.entity.ProductDocument;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Auther: liuyanhui
 * @Date: 2023/01/19/ 14:52
 */
public interface ProductService extends BaseSearchService<ProductDocument>{
    void save(ProductDocument ... productDocument);

    void delete(String id);

    void deleteAll();

    ProductDocument getById(String id);

    List<ProductDocument> getAll();

    List<ProductDocument> query(String keyword, Class<ProductDocument> productDocumentClass);


}
